import{d as z,l as k,o as n,c as _,e as s,w as e,q as u,t as a,f as t,Y as v,W as h,b as d,F as x,a as l,m,a2 as V,_ as O}from"./index-c80Lh_is.js";import{S as B}from"./StatusBadge-UNqSn95Q.js";const R={class:"stack"},S=z({__name:"ZoneEgressSummary",props:{zoneEgressOverview:{}},setup(c){const{t:o}=k(),r=c;return(w,g)=>(n(),_("div",R,[s(v,null,{title:e(()=>[t(a(u(o)("http.api.property.status")),1)]),body:e(()=>[s(B,{status:r.zoneEgressOverview.state},null,8,["status"])]),_:1}),t(),s(v,null,{title:e(()=>[t(a(u(o)("http.api.property.address")),1)]),body:e(()=>[r.zoneEgressOverview.zoneEgress.socketAddress.length>0?(n(),d(h,{key:0,text:r.zoneEgressOverview.zoneEgress.socketAddress},null,8,["text"])):(n(),_(x,{key:1},[t(a(u(o)("common.detail.none")),1)],64))]),_:1})]))}}),C={key:1,class:"stack"},Z=z({__name:"ZoneEgressSummaryView",props:{zoneEgressOverview:{default:void 0}},setup(c){const o=c;return(r,w)=>{const g=l("RouteTitle"),y=l("RouterLink"),E=l("AppView"),f=l("RouteView");return n(),d(f,{name:"zone-egress-summary-view",params:{zone:"",zoneEgress:""}},{default:e(({route:p,t:i})=>[s(E,null,{title:e(()=>[m("h2",null,[s(y,{to:{name:"zone-egress-detail-view",params:{zone:p.params.zone,zoneEgress:p.params.zoneEgress}}},{default:e(()=>[s(g,{title:i("zone-egresses.routes.item.title",{name:p.params.zoneEgress})},null,8,["title"])]),_:2},1032,["to"])])]),default:e(()=>[t(),o.zoneEgressOverview===void 0?(n(),d(V,{key:0},{message:e(()=>[m("p",null,a(i("common.collection.summary.empty_message",{type:"ZoneEgress"})),1)]),default:e(()=>[t(a(i("common.collection.summary.empty_title",{type:"ZoneEgress"}))+" ",1)]),_:2},1024)):(n(),_("div",C,[m("div",null,[m("h3",null,a(i("zone-egresses.routes.item.overview")),1),t(),s(S,{class:"mt-4","zone-egress-overview":o.zoneEgressOverview},null,8,["zone-egress-overview"])])]))]),_:2},1024)]),_:1})}}}),b=O(Z,[["__scopeId","data-v-8f36af2a"]]);export{b as default};
